<template>
  <main-layout>
    <div class="about-page">
      <!-- 顶部横幅 -->
      <div class="about-banner">
        <div class="container">
          <h1>关于我们</h1>
          <p>传承花艺文化，创造美好生活</p>
        </div>
      </div>

      <!-- 公司简介 -->
      <section class="company-intro">
        <div class="container">
          <div class="intro-content">
            <div class="intro-text">
              <h2>优雅花艺</h2>
              <p>
                成立于2010年，是一家扎根于广州的专业花艺设计与销售的综合性企业。十余年来，我们始终秉持"让生活更美好"的理念，致力于为客户提供高品质的花艺产品和专业的花艺服务。
              </p>
              <p>
                我们在广州拥有专业的花艺师团队，每一位成员都经过严格的专业培训，具备丰富的实践经验。我们用心挑选每一朵花，精心设计每一件作品，只为给您最美的享受。
              </p>
            </div>
            <div class="intro-image">
              <img src="@/assets/images/banner.jpg" alt="公司简介" />
            </div>
          </div>
        </div>
      </section>

      <!-- 花艺文化 -->
      <section class="flower-culture">
        <div class="container">
          <h2 class="section-title">花艺文化</h2>
          <div class="culture-grid">
            <div class="culture-item">
              <div class="culture-icon">
                <i class="fas fa-history"></i>
              </div>
              <h3>历史传承</h3>
              <p>
                花艺文化源远流长，从古至今都是人类表达情感、装点生活的重要方式。我们致力于传承和发展这份美好的文化遗产。
              </p>
            </div>
            <div class="culture-item">
              <div class="culture-icon">
                <i class="fas fa-palette"></i>
              </div>
              <h3>艺术创新</h3>
              <p>
                我们不断探索花艺设计的新可能，融合东西方美学，创造独具特色的花艺作品。
              </p>
            </div>
            <div class="culture-item">
              <div class="culture-icon">
                <i class="fas fa-heart"></i>
              </div>
              <h3>情感表达</h3>
              <p>
                花语传情，每一束花都承载着美好的祝福和深深的情意，我们用花艺传递爱与美。
              </p>
            </div>
          </div>
        </div>
      </section>

      <!-- 发展历程 -->
      <section class="history">
        <div class="container">
          <h2 class="section-title">发展历程</h2>
          <div class="timeline">
            <div class="timeline-item">
              <div class="year">2010</div>
              <div class="content">
                <h3>品牌创立</h3>
                <p>优雅花艺在广州天河区正式成立，开启花艺服务之旅</p>
              </div>
            </div>
            <div class="timeline-item">
              <div class="year">2015</div>
              <div class="content">
                <h3>规模扩张</h3>
                <p>成功开设10家直营店，服务范围覆盖广州全城</p>
              </div>
            </div>
            <div class="timeline-item">
              <div class="year">2018</div>
              <div class="content">
                <h3>品牌升级</h3>
                <p>在珠江新城开设高端定制中心，建立花艺培训学院</p>
              </div>
            </div>
            <div class="timeline-item">
              <div class="year">2020</div>
              <div class="content">
                <h3>线上发展</h3>
                <p>全新电商平台上线，服务范围扩展至粤港澳大湾区</p>
              </div>
            </div>
          </div>
        </div>
      </section>

      <!-- 联系我们 -->
      <section class="contact">
        <div class="container">
          <h2 class="section-title">联系我们</h2>
          <div class="contact-content">
            <div class="contact-info">
              <div class="info-item">
                <i class="fas fa-map-marker-alt"></i>
                <div>
                  <h3>公司地址</h3>
                  <p>广东省广州市天河区珠江新城花城大道123号</p>
                </div>
              </div>
              <div class="info-item">
                <i class="fas fa-phone"></i>
                <div>
                  <h3>联系电话</h3>
                  <p>020-8888-6666</p>
                </div>
              </div>
              <div class="info-item">
                <i class="fas fa-envelope"></i>
                <div>
                  <h3>电子邮箱</h3>
                  <p>service@flower.com</p>
                </div>
              </div>
            </div>
            <div class="contact-map">
              <img src="@/assets/images/banner.jpg" alt="地图" />
            </div>
          </div>
        </div>
      </section>
    </div>
  </main-layout>
</template>

<script>
import MainLayout from "@/components/layouts/MainLayout.vue";

export default {
  name: "AboutView",
  components: {
    MainLayout,
  },
};
</script>

<style scoped>
.about-page {
  background: #fff;
}

.about-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("@/assets/images/banner.jpg");
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.about-banner h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #333;
}

.company-intro {
  padding: 80px 0;
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.intro-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.intro-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #666;
}

.intro-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.flower-culture {
  padding: 80px 0;
  background: #f8f9fa;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.culture-item {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.culture-item:hover {
  transform: translateY(-10px);
}

.culture-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #ff6b6b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.culture-icon i {
  font-size: 32px;
  color: white;
}

.culture-item h3 {
  margin-bottom: 15px;
  color: #333;
}

.culture-item p {
  color: #666;
  line-height: 1.6;
}

.history {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: calc(100% - 80px);
  background: linear-gradient(to bottom, #ff6b6b 0%, #ff8585 100%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-item:nth-child(odd) .content {
  margin-right: 50%;
  padding-right: 50px;
  text-align: right;
}

.timeline-item:nth-child(even) .content {
  margin-left: 50%;
  padding-left: 50px;
}

.year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b6b;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  min-width: 120px;
  text-align: center;
}

.content {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 45%;
  position: relative;
  transition: all 0.3s ease;
}

.content::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #ff6b6b;
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .content::before {
  right: -60px;
}

.timeline-item:nth-child(even) .content::before {
  left: -60px;
}

.content h3 {
  color: #ff6b6b;
  font-size: 20px;
  margin-bottom: 10px;
}

.content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.timeline-item:hover .content {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.advantages {
  padding: 80px 0;
  background: #f8f9fa;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.advantage-item {
  text-align: center;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.advantage-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.advantage-item h3 {
  margin: 20px 0 10px;
  color: #333;
}

.advantage-item p {
  color: #666;
  margin-bottom: 20px;
}

.contact {
  padding: 80px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: grid;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-item i {
  font-size: 24px;
  color: #ff6b6b;
}

.contact-map img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
  .intro-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .culture-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .culture-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 70px;
  }

  .year {
    left: 20px;
    transform: translateX(-50%);
    min-width: auto;
    padding: 8px 15px;
    font-size: 14px;
  }

  .content,
  .timeline-item:nth-child(odd) .content,
  .timeline-item:nth-child(even) .content {
    width: 100%;
    margin: 0;
    padding: 15px;
    text-align: left;
  }

  .content::before,
  .timeline-item:nth-child(odd) .content::before,
  .timeline-item:nth-child(even) .content::before {
    left: -35px;
    width: 12px;
    height: 12px;
  }
}
</style> 